<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
      $("#te").click(function(){
        alert($("#te").text());
      });

      $("#qwe").click(function(){
        alert($("input[type='chockbox']").val());
      });

      alert($("form > input").val());
    });
    </script>
  </head>
  <body>
<p id="te">OK</p>

<input id="qwe" type="chockbox" value="ssss" />

<form>
  <label>Name:</label>
  <input name="name" />
  <fieldset>
      <label>Newsletter:</label>
      <input name="newsletter" value="Newsletter" />
 </fieldset>
</form>
<input name="none" />
  </body>
</html>
